<?php

namespace App\Component;

use Nette\Application\UI\Control;

class Shortnew extends Control {
  
  private $shortnews;

  /**
   * Init component
   * @param array $shortnews
   * @return \App\Component\Shortnew
   */
  public function init($shortnews){
    $this->shortnews = $shortnews;
    return $this;
  }

  /**
   * Render component
   */
	public function render() {
		$template = $this->template;
		$template->setFile(__DIR__ . '/shortnew.latte');
    $template->shortnews = $this->shortnews;
		$template->render();
	}

}
